bpo-29554: Improve docs for pstat module and profile.#88
bpo-29554: Improve docs for pstat module and profile.#88berkerpeksag merged 2 commits intopython:masterfrom
Conversation
Doc/library/profile.rst
Outdated
There was a problem hiding this comment.
As the rewrapping make a lot of line changes:
or a string that will interpreted as a regular expression
There was a problem hiding this comment.
I'd recommend redoing the PR as a commit to make the change(s) you want and a commit to rewrap. That way the change can be reviewed more easily.
There was a problem hiding this comment.
Ohhhh ! Why did I never thought of that. Done.
Lib/pstats.py
Outdated
There was a problem hiding this comment.
add:
that are respectively interpreted as 'stdname', 'calls', 'time', and 'cumulative'
Lib/pstats.py
Outdated
There was a problem hiding this comment.
and to , and add and sort_arg_dict_default
|
This requires a new tracker item on bugs.python.org. See step 5 at http://cpython-devguide.readthedocs.io/#quick-start for details. |
Thank you, I thought that was minor enough. but done as bpo-29554 |
Doc/library/profile.rst
Outdated
There was a problem hiding this comment.
Shouldn't "(to pattern match the standard name that is printed." be end with a closing parenthesis ?
Lib/pstats.py
Outdated
There was a problem hiding this comment.
There are multiple whitespaces between "respectively interpreted".
Lib/pstats.py
Outdated
There was a problem hiding this comment.
Instead of breaking sort_stats('time', 'name') call I'd move the "For example [...]" sentence to its own paragraph.
Codecov Report
@@ Coverage Diff @@
## master #88 +/- ##
==========================================
- Coverage 83.38% 82.38% -1.01%
==========================================
Files 1367 1428 +61
Lines 344903 351138 +6235
==========================================
+ Hits 287604 289284 +1680
- Misses 57299 61854 +4555Continue to review full report at Codecov.
|
Clarify that methods takes a string which is interpreted as a re, and not a re object. Clarify what the old `-1`, `0`, `1` and `2` option were.
Re wrap as a second commit, to make review easier.
|
Thanks! |
|
Thanks, much appreciated. |
Clarify that methods take a string which is interpreted as a regex, not a regex object. Also clarify what the old `-1`, `0`, `1` and `2` options were. (cherry picked from commit 8fb1f6e)
Clarify that methods take a string which is interpreted as a regex, not a regex object. Also clarify what the old `-1`, `0`, `1` and `2` options were. (cherry picked from commit 8fb1f6e)
stackless.current.switch() Fix an assertion violation caused by incorrect usage of ts->st.del_post_switch. Add a test case for "switch to current". This commit also adds the test class TestTaskletSwitching, which was only in 2.7-slp. https://bitbucket.org/stackless-dev/stackless/issues/88 (grafted from f0db3bdf1061, b85b07e9f10effdbf52adc71d452d1e93bd3c5fd, 782a1b292460 and 7d9b4398011f)
The object's thread-id may be zero by the time _Py_queue_object is called. Get the thread-id before marking the object as queued in _Py_DecRefShared. Fixes #88
Clarify that methods takes a string which is interpreted as a re, and
not a re object.
Clarify what the old
-1,0,1and2option were.bpo-29554